{% extends 'rango/base.html'%}
{% block body_block%}
<div class="hero-unit">
    <h1>Add a new page</h1>
    <br/>
    <div class="container">
        <form class="span6" id="page_form" method="post" action="/rango/category/{{category_id}}/add_page/">
            {% csrf_token %}
            {% for hidden in form.hidden_fields %}
                {{ hidden }}
            {% endfor %}

            {% for field in form.visible_fields %}
                {{ field.errors }}<br/>
                {{ field.help_text }}
                {{ field }}
            {% endfor %}
            <br/>
            <button type="submit" name="submit" class="btn btn-primary">Create Page</button>
        </form>
    </div>
</div>

<!-- 
    <h1>Add a new page</h1>
    <form id="page_form" method="post" action="/rango/category/{{category_id}}/add_page/">
        {% csrf_token %}
        {% for hidden in form.hidden_fields %}
            {{ hidden }}
        {% endfor %}

        {% for field in form.visible_fields %}
            {{ field.errors }}<br/>
            {{ field.help_text }}
            {{ field }}
        {% endfor %}
        <br/>
        <input type="submit" name="submit" value="Create Page" />
    </form>
-->
{% endblock%}
